{* Extend our master template *}
{extends file="master.tpl"}

{* This block is defined in the master.php template *}
{block name=content}
    <div class="panel panel-default">
        {include file="components/panel_heading.tpl" title=$title sub_title=$sub_title add_button=TRUE href="groups/add"}
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table table-hover table-striped dataTableSimple">
                    <thead>
                        <tr>
                            <th>{'title'|trans}</th>
                            <th>{'description'|trans}</th>
                            <th>{'action_edit'|trans}</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach from=$groups item=group}
                            <tr>
                                <td>{$group['name']}</td>
                                <td>{$group['description']}</td>
                                <td>
                                    <a href="{$ADMIN_URL}groups/edit/{$group['id']}" class="btn btn-default tip" title="Edit"><i class="fa {$this->config->item('button_edit')}"></i></a>
                                </td>
                            </tr>
                        {/foreach}
                    </tbody>
                </table>
            </div><!-- table-responsive -->
        </div>
    </div>
{/block}